# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=feh
pkgver=3.4.1
pkgrel=0
pkgdesc="Fast, lightweight image viewer which uses imlib2"
options="!check" # Requires unpackaged 'perl-test-command'
url="https://feh.finalrewind.org"
arch="all"
license="MIT-feh"
subpackages="$pkgname-doc"
makedepends="curl-dev imlib2-dev libjpeg-turbo-dev libpng-dev
	libxinerama-dev libxt-dev"
checkdepends="perl-utils"
source="https://feh.finalrewind.org/feh-$pkgver.tar.bz2"

build() {
	make PREFIX=/usr
}

check() {
	make test
}

package() {
	make PREFIX=/usr DESTDIR="$pkgdir" \
		bin_dir="$pkgdir"/usr/bin \
		man_dir="$pkgdir"/usr/share/man \
		doc_dir="$pkgdir"/usr/share/doc/$pkgname \
		example_dir="$pkgdir"/usr/share/doc/$pkgname/examples \
		install
}

sha512sums="d674d3134819cf6731aebf8af87a2f890d54dd7f8c64071e8816a032aeeb95c31f56752bb3477be0dfb653f813872b32dc2daf4e0514fed03e3f6bba36896c66  feh-3.4.1.tar.bz2"
